<div class="content">
    <div class="div-top">
        <span style="font-size: 20px;float:left;">{{menu_name}}</span>
        <div style="float:right;">
            <button ng-repeat="but in buttons" ng-click="clickBtn(but.event)" class="btn btn-{{but.style}}"><i class="iconfont {{but.img}}"></i>&nbsp;{{but.name}}</button>
        </div>
    </div>
    <form class="div-find form-inline">
        <div class="form-group">
            <label class="form-label">学段：</label>
            <select class="form-control" ng-options="stage.id as stage.name for stage in stageList" ng-model="form.fk_stage">
                <option value="">请选择</option>
            </select>
        </div>
        <div class="form-group">
            <label class="form-label">课程性质：</label>
            <select  class="form-control"  ng-model="form.flag">
                <option value="">请选择</option>
                <option value="1">公用课程</option>
                <option value="2">特色课程</option>
            </select>
        </div>
        <div class="form-group" style="position: relative;" ng-if="form.flag==2">
            <label class="form-label">学校：</label>
            <input type="text" placeholder="==请选择学校==" readonly="readonly" ng-model="gzdwname" class="form-control" style="width: 300px; background: #fff;" ng-click="showul(1)">
            <ul class="ss-ul gzdw ss-display">
                <li><input type="text" placeholder="学校名称" ng-model="gname" class="form-control" style="width: 100%; line-height: 40px;" ng-change="gnames=gname"></li>
                <li ng-click="getSchool(0)">==请选择==</li>
                <li ng-repeat="school in unitList | filter:{name:gnames}" ng-model="apply_school" ng-click="getSchool(school)">{{school.name}}</li>
            </ul>
        </div>
        <div class="form-group">
            <label class="form-label">课程名称：</label>
            <input ng-model="form.name" type="text" class="form-control" placeholder="课程名称"/>
            <button ng-click="select()" type="submit" class="btn btn-secondary"><i class="iconfont icon-search"></i>&nbsp;查询</button>
        </div>
    </form>

    <div class="div-table">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th class="table-th-checkbox" >
                    <input type="checkbox" ng-click="checkAll($event.target)" />
                </th>
                <th column="sort" class="sorting" ng-click="order($event.target)">序号</th>
                <th column="name" class="sorting" ng-click="order($event.target)">课程名称</th>
                <th column="flag" class="sorting" ng-click="order($event.target)">课程性质</th>
                <th column="code" class="sorting" ng-click="order($event.target)">课程代码</th>
                <th column="create_time" class="sorting" ng-click="order($event.target)">创建时间</th>
            </tr>
            </thead>

            <tbody ng-switch on="page.current_num">
            <tr ng-switch-when="0">
                <td colspan="100" >查询无记录</td>
            </tr>
            <tr ng-repeat="row in rows" ng-click="optData($event.currentTarget)">
                <td>
                    <input type="checkbox" name="dataPk" value="{{row.id}}" />
                </td>
                <td>{{row.sort}}</td>
                <td>{{row.stage_name}}{{row.name}}</td>
                <td ng-switch on="row.flag">
                    <span ng-switch-when="1">公用课程</span>
                    <span ng-switch-when="2">特色课程</span>
                </td>
                <td>{{row.code}}</td>
                <td>{{row.create_time}}</td>
            </tr>
            </tbody>
        </table>
    </div>
    <div ng-include="'plugin/frame/3.0.1/html/page.html'" class="div-page" ></div>
</div>